package lex.title.liquid;

import java.awt.Container;
import lex.title.basic.BasicTitleLayout;

class LiquidTitleLayout extends BasicTitleLayout {
	private final LiquidWindowTitle title;

	LiquidTitleLayout(LiquidWindowTitle title) {
		super(title);
		this.title = title;
		this.setButtonGap(0);
		this.setEdgeGap(0);
	}

	public void layoutContainer(Container c) {
		if (title.isNoneDecoration())
			return;
		if (title.isLeftToRight())
			super.layoutLeftToRight(c);
		else
			super.layoutRightToLeft(c);
	}
}
